<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php  $this->need('header_com.php'); ?>
<body style="zoom: 1;">
<div id="web_bg"></div>
<div class="page" id="body-wrap">
<?php if (is_array($this->options->beautifyBlock) && in_array('PageShowTopimg',$this->options->beautifyBlock)): ?>
<header class="not-home-page" id="page-header" style="background-image: url(<?php GetRandomThumbnailPost($this); ?>)">
    <div id="page-site-info">
        <h1 id="site-title">
        <?php $this->archiveTitle(array(
            'category'  =>  _t(' %s '),
            'search'    =>  _t('包含关键字 %s 的文章'),
            'tag'       =>  _t('标签 %s 下的文章'),
            'author'    =>  _t('%s 发布的文章')
        ), '', ''); ?>
    <?php if($this->user->hasLogin() && $this->is('page')):?>
    <a style="float: none;"  class="post-edit-link" href="<?php $this->options->adminUrl(); ?>write-page.php?cid=<?php echo $this->cid;?>" title="編輯" target="_blank"><i class="fas fa-pencil-alt"></i></a><?php endif;?>
        </h1>
    </div>
<?php else: ?>        
<header class="not-top-img" id="page-header">        
<?php endif; ?>
<?php  $this->need('public/nav.php'); ?>
</header>